﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TracNghiemV1.Database;
using TracNghiemV1.DAO;


namespace TracNghiemV1.BUS
{
    class CourseBus
    {
        public static COURSE FindCourseWithCourseId(string courseId)
        {
            return CourseDao.FindCourseWithCourseId(courseId);
        }

        public static IList<COURSE> FindCourseListWithName(string name)
        {
            return CourseDao.FindCourseListWithName(name);
        }


        public static void AddCourse(COURSE newCourse)
        {
            CourseDao.AddCourse(newCourse);
        }

        public static void ModifyCourse(COURSE modifiedCourse)
        {
            CourseDao.ModifyCourse(modifiedCourse);
        }

        public static void DeleteCourse(string courseId)
        {
            CourseDao.DeleteCourse(courseId);
        }

        public static COURSE GetLatestCourse()
        {
            return CourseDao.GetLatestCourse();
        }
    }
}
